﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sparrow.Reflection
{
    public class ConstructorMetadata : Sparrow.Reflection.MemberMetadata
    {
        private System.Reflection.ConstructorInfo contructor;

        public ConstructorMetadata(System.Reflection.ConstructorInfo contructor)
        {
            // TODO: Complete member initialization
            this.contructor = contructor;

            this.Attributes = new List<AttributeMetadata>();
            foreach (var attr in contructor.GetCustomAttributes(false))
            {
                this.Attributes.Add(new AttributeMetadata { Attribute = attr });
            }
        }
    }
}
